<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <ui:insert name="header"/>
        <title>Java EE 6 Application</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <h:outputStylesheet name="css/bootstrap.min.css" />
        <h:outputStylesheet name="css/bootstrap-responsive.min.css" />
        <h:outputStylesheet name="css/smoothness/jquery-ui-1.9.2.custom.min.css" />
        <h:outputStylesheet name="css/smoothness/jquery-ui-timepicker-addon.css" />
        <h:outputStylesheet name="css/default.css" />
        <h:outputScript name="js/jquery-1.8.3.min.js" />
        <h:outputScript name="js/jquery-ui-1.9.2.custom.min.js" />
        <h:outputScript name="js/jquery-ui-timepicker-addon.js" />
        <h:outputScript name="js/bootstrap.min.js" />
        <script>
            $(function() {
                $( ".timepicker" ).timepicker();
                $( ".datetimepicker" ).datetimepicker();
                $( ".datepicker" ).datepicker({
                    yearRange: "-99:+0",
                    changeYear: true,
                    dateFormat: "yy-mm-dd"
                });
            });
        </script>
    </h:head>
    <h:body>
        <div id="container">
            <div id="content">
                <div>
                    <h:panelGroup>
                        <div class="navbar navbar-fixed-top">
                            <h:panelGroup rendered="#{authenticator.admin}">
                                <div class="navbar-inner">
                                    <a class="brand" href="#">#{msg['default.role.admin']}</a>
                                    <ul class="nav">
                                        <li><h:link outcome="deliveries">#{msg['default.deliveries']}</h:link></li>
                                        <li><h:link outcome="employees">#{msg['default.employees']}</h:link></li>
                                        <li><h:link outcome="customers">#{msg['default.customers']}</h:link></li>
                                        <li><a href="http://localhost:8080/pa165"><strong>FAST REWIND AFTER REDEPLOY</strong></a></li>
                                    </ul>
                                </div>
                            </h:panelGroup>
                            <h:panelGroup rendered="#{authenticator.deliveryBoy}">
                                <div class="navbar-inner">
                                    <a class="brand" href="#">#{msg['default.role.deliveryBoy']}</a>
                                    <ul class="nav">
                                        <li><a href="#">...</a></li>
                                    </ul>
                                </div>
                            </h:panelGroup>
                        </div>
                        <div class="logout-form">
                            <h:form>
                                #{msg['default.loggedIn']} #{authenticator.loggedUser} <h:commandButton class="btn" action="#{authenticator.logout}" value="#{msg['default.logout']}"/>.
                            </h:form>
                        </div>
                        <div class="navbar-fix"></div>
                    </h:panelGroup>
                </div>

                <br />
                <div class="contentBody">
                    <ui:insert name="content">
                        [Template content will be inserted here]
                    </ui:insert>
                </div>
            </div>
        </div>
    </h:body>
</html>